package com.ticket.sass.provider.dto.input.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ywb
 * @date 2022-10-17 17:06
 */
@Data
@ApiModel(value = "管理员添加", description = "按照要求填写")
public class AdminAddInput {
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
    
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    
    @NotNull(message = "启用状态")
    @ApiModelProperty(value = "启用状态")
    private Boolean enable = Boolean.TRUE;
}
